//请求接口的方法   2018-1-18 by lxx 814878176@qq.com

var BASE_URL = "http://1h483s1282.iok.la/mars-router-api/router";
var BASE_URL = "http://120.24.163.174:8084/mars-router-api/router";

function postRequest(params,callback){
	for(var i in params){
		if(params[i] == undefined || params[i] == "" || params[i] =="undefined"){
			delete params[i];
		}
	}
	var appsecret = "zgdxkhtyzx";   
	params.app_key = "wx_client_key";
	params.client_id = "oJRTC1fQhzHfqyo51D6G-QVTU7jk";
	params.timestamp  = Math.round(new Date().getTime()) + "";
	params.sign = md5(params.app_key+appsecret+params.timestamp);
	
	$.ajax({
	  	type: "post",
	  	url: BASE_URL,
	  	data: params,
	  	dataType: "json",
	  	success: function(data){
	  		callback(data);
	  	},
	  	error: function(){
	  		
	  	}
	});
}
	

